(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/xgadmin/admin_creditorder" ], {
    "0bf2": function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return a;
        }), n.d(t, "c", function() {
            return i;
        }), n.d(t, "a", function() {
            return r;
        });
        var r = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceEmptyNew: function() {
                return n.e("graceUI/components/graceEmptyNew").then(n.bind(null, "fb2f"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            },
            graceLoading: function() {
                return n.e("graceUI/components/graceLoading").then(n.bind(null, "93a5"));
            }
        }, a = function() {
            var e = this, t = (e.$createElement, e._self._c, e.__map(e.orderItemList, function(t, n) {
                return {
                    $orig: e.__get_orig(t),
                    l0: e.__map(t, function(t, n) {
                        return {
                            $orig: e.__get_orig(t),
                            g0: t.goodslist.length > 1 ? t.goodslist[0][3].substring(0, 10) : null
                        };
                    })
                };
            }));
            e.$mp.data = Object.assign({}, {
                $root: {
                    l1: t
                }
            });
        }, i = [];
    },
    1292: function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = {
                data: function() {
                    return {
                        graceFullLoading: !0,
                        currentCur: "order",
                        menuList: [],
                        bottomColor: "",
                        orderItemList: [ 0 ],
                        scrollLeft: "c0",
                        tabCurrentIndex: 0,
                        attach: "",
                        nickname: "",
                        productList: [],
                        loadingData: [],
                        ordernum: 0,
                        tempItem: [],
                        clickNum: [],
                        page: [],
                        pageMore: [],
                        tempPageMore: 0,
                        userWxInfo: {},
                        topayservice: "去确认",
                        isRelease: 2,
                        isadmin: 0,
                        teckname: "技师",
                        sharetitle: "诚邀加盟，共创辉煌",
                        shareimg: "../../static/share/share.jpg",
                        dsharetitle: "邀您成为分销商，共创辉煌",
                        dshareimg: "../../static/share/share.jpg",
                        menuShow: !1,
                        showBack: !1
                    };
                },
                onLoad: function(e) {
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, e.ordernum && (this.tabCurrentIndex = e.ordernum, 
                    this.ordernum = e.ordernum), this.getOrderMenu();
                },
                onShow: function() {
                    1 == e.getStorageSync("credittoadmin") && (e.removeStorageSync("credittoadmin"), 
                    this.graceFullLoading = !0, this.tabCurrentIndex = 0, this.ordernum = 0, this.getOrderMenu());
                },
                methods: {
                    refresh: function() {
                        e.redirectTo({
                            url: "/xg_o2o/xgadmin/xgadmin"
                        });
                    },
                    xgMenu: function() {
                        this.menuShow = 1 != this.menuShow;
                    },
                    menuHide: function() {
                        this.menuShow = !1;
                    },
                    tabClick: function(e) {
                        this.tabCurrentIndex = e.currentTarget.dataset.cindex;
                    },
                    changeTab: function(e) {
                        this.tabCurrentIndex = e.target.current;
                        var t = e.target.current;
                        this.scrollLeft = "c" + t, 0 == this.clickNum[t] && this.loadData(t, 1);
                    },
                    getOrderMenu: function() {
                        var t = this;
                        e.removeStorageSync("credittoadmin");
                        var n = this.$xSign.sign("u8admincreditmenu");
                        this.$xRequest.request({
                            url: "entry/wxapp/u8admincreditmenu",
                            data: {
                                xgsign: n
                            },
                            success: function(n) {
                                var r = JSON.parse(t.$Decrypt(n.data.data));
                                if (101 == r.isadmin) return t.isadmin = 0, e.showToast({
                                    title: n.data.message,
                                    mark: !0,
                                    icon: "none",
                                    duration: 1200
                                }), void setTimeout(function() {
                                    e.navigateBack({
                                        delta: 1
                                    });
                                }, 1200);
                                t.graceFullLoading = !1, 0 == n.data.errno && (t.bottomColor = r.color, t.menuList = r.menu, 
                                t.orderItemList = r.orderItemList, t.clickNum = r.clicknum, t.page = r.page, t.loadingData = r.loadType, 
                                t.pageMore = r.pageMore, t.attach = r.attach, t.teckname = r.teckname, t.shareimg = r.shareimg, 
                                t.dshareimg = r.dshareimg, t.sharetitle = r.sharetitle, t.dsharetitle = r.dsharetitle, 
                                r.nickname && (t.nickname = "：" + r.nickname), t.scrollLeft = "c" + t.ordernum, 
                                t.loadData(t.ordernum, 1));
                            }
                        });
                    },
                    loadData: function(t, n) {
                        var r = this, a = this.menuList[t].status;
                        if (1 == this.pageMore[t]) return 1 == n && (this.graceFullLoading = !1), e.hideLoading(), 
                        !1;
                        1 == n && (this.graceFullLoading = !0), e.showLoading({
                            title: "数据加载中",
                            mask: !0
                        }), setTimeout(function() {
                            var i = r.$xSign.sign("u8admincreditorder");
                            r.$xRequest.request({
                                url: "entry/wxapp/u8admincreditorder",
                                data: {
                                    page: r.page[t],
                                    status: a,
                                    xgsign: i
                                },
                                success: function(a) {
                                    1 == n && (r.graceFullLoading = !1), e.hideLoading();
                                    var i = JSON.parse(r.$Decrypt(a.data.data));
                                    if (0 == i.info) {
                                        if (i.itemlist) {
                                            var o = i.itemlist;
                                            r.tempItem = r.orderItemList[t].concat(i.itemlist), r.orderItemList[t] = r.tempItem, 
                                            o.length < i.pagesize ? (r.pageMore[r.tabCurrentIndex] = 1, r.loadingData.splice(r.tabCurrentIndex, 1, 2)) : r.loadingData.splice(r.tabCurrentIndex, 1, 0);
                                        }
                                        r.clickNum[t]++, r.page[t]++;
                                    } else r.tempPageMore = i.info, r.pageMore[t] = r.tempPageMore, r.loadingData.splice(r.tabCurrentIndex, 1, 2);
                                    i.total == r.orderItemList.length && (r.pageMore[r.tabCurrentIndex] = 1, r.loadingData.splice(r.tabCurrentIndex, 1, 2));
                                }
                            });
                        }, 1e3);
                    },
                    toDetail: function(t) {
                        e.navigateTo({
                            url: "/xg_o2o/xgadmin/admin_creditorder_detail?oid=" + t
                        });
                    },
                    copyId: function(t) {
                        e.setClipboardData({
                            data: t,
                            success: function() {
                                console.log("success");
                            }
                        });
                    },
                    dateToStr: function(e) {
                        var t = 1e3 * parseInt(e), n = new Date(t), r = n.getFullYear(), a = n.getMonth() + 1, i = n.getDate(), o = n.getHours(), u = n.getMinutes();
                        return n.getSeconds(), r + "-" + (String(a).length > 1 ? a : "0" + a) + "-" + (String(i).length > 1 ? i : "0" + i) + " " + (String(o).length > 1 ? o : "0" + o) + ":" + (String(u).length > 1 ? u : "0" + u);
                    }
                },
                computed: {
                    style: function() {
                        var t = this.$systemInfo.info(), n = t.windowHeight - t.iPhoneXBottomHeightPx - t.statusBarHeight - 45 - e.upx2px(90);
                        return "height:".concat(n, "px;");
                    }
                }
            };
            t.default = n;
        }).call(this, n("543d").default);
    },
    5430: function(e, t, n) {
        "use strict";
        n.r(t);
        var r = n("0bf2"), a = n("b0e8");
        for (var i in a) "default" !== i && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(i);
        var o = n("f0c5"), u = Object(o.a)(a.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        t.default = u.exports;
    },
    "95fc": function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("5430")).default);
        }).call(this, n("543d").createPage);
    },
    b0e8: function(e, t, n) {
        "use strict";
        n.r(t);
        var r = n("1292"), a = n.n(r);
        for (var i in r) "default" !== i && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(i);
        t.default = a.a;
    }
}, [ [ "95fc", "common/runtime", "common/vendor" ] ] ]);